package com.xieyingwangluo.yxpart.service.impl;

import com.xieyingwangluo.yxpart.bean.Result;
import com.xieyingwangluo.yxpart.entity.UserInfoModel;
import com.xieyingwangluo.yxpart.mapper.UserInfoMapper;
import com.xieyingwangluo.yxpart.service.UserInfoService;
import com.xieyingwangluo.yxpart.utils.StringBuildUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserInfoServiceImpl implements UserInfoService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public int add(UserInfoModel userInfoModel) {

        return userInfoMapper.add(userInfoModel);
    }

    @Override
    public UserInfoModel selInfo(String noid) {
        return userInfoMapper.selInfo(noid);
    }

    @Override
    public UserInfoModel getById(String noid) {
        return userInfoMapper.getById(noid);
    }

    @Override
    public UserInfoModel selO(String noid) {
        return userInfoMapper.selO(noid);
    }

    @Override
    public int updS(String noid, int state) {
        return userInfoMapper.updS(noid, state);
    }

    @Override
    public List<UserInfoModel> selA(UserInfoModel userInfoModel) {
        return userInfoMapper.selA(userInfoModel);
    }

    @Override
    public int upd(UserInfoModel userInfoModel) {
        return userInfoMapper.upd(userInfoModel);
    }
}
